package com.tianxiabuyi.model.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;



/**
 * 评论回复
 * @author yangh
 */
@Entity
@Table(name = "comment")
public class Comment extends TXBYObject {
	private Integer uid;       // 回复用户id
	private String content;    // 回复内容
	@Column(name = "src_id")@JSONField(name = "src_id")
	private Integer srcId;     // 来源id
	private String imgs;	   // 评论中图片
	private Float score;       // 评分
	private Integer category;   // 类型

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getAtUid() {
		return atUid;
	}

	public void setAtUid(Integer atUid) {
		this.atUid = atUid;
	}
	@Column(name = "parent_id")@JSONField(name = "parent_id")
	private Integer parentId;   // 父类id
	@Column(name = "at_uid")@JSONField(name = "at_uid")
	private Integer atUid;      // 艾特的人id
	public Integer getCategory() {
		return category;
	}

	public void setCategory(Integer category) {
		this.category = category;
	}

	public Float getScore() {
		return score;
	}

	public void setScore(Float score) {
		this.score = score;
	}

	public Integer getSrcId() {
		return srcId;
	}

	public void setSrcId(Integer srcId) {
		this.srcId = srcId;
	}

	public Integer getUid() {
		return uid;
	}
	
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	
	public String getContent() {
		return content;
	}
	
	public void setContent(String content) {
		this.content = content;
	}

	public String getImgs() {
		return imgs;
	}

	public void setImgs(String imgs) {
		this.imgs = imgs;
	}
}